#ifndef WAVE_H_INCLUDED
#define WAVE_H_INCLUDED

#include <mmsystem.h>
#include <wx/msgdlg.h>
#include <fftw3.h>

#include <fstream>
using namespace std;

class micInput {

public:
  micInput();
  virtual ~micInput();

  void startRecording(wxGauge *theGauge,	wxTextCtrl* txtDebug);
  void stopRecording();
  void kill();
  //bool playBack(char* buffer, int numrcv);
  bool playBack();
  //int getVolume();
  fftw_complex *in, *out;
  fftw_plan p;
private:
  HWAVEIN      hWaveIn;
  WAVEHDR      WaveInHdr;


  MMRESULT result;

  // Specify recording parameters
  WAVEFORMATEX pFormat;


};

#endif // WAVE_H_INCLUDED
